home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
gfx
/
edit
/
HamToGrey.lha
/
HamToGrey.doc
< prev
Wrap
Text File
|
1993-11-25
|
2KB
|
76 lines
HAM to Greyscale picture converter V1.0
---------------------------------------
This is a very simple utility to convert a HAM picture into either
16 or 32 colour greyscale pictures. It does not use any AGA graphics
modes, and achieves 32 shades of grey by cheating. The 32 colour palette
if of the form
Colour R G B
0 0 0 0
1 1 1 0
2 1 1 1
3 2 2 1
4 2 2 2
5 3 3 2
6 3 3 3
etc.
The means you pictures have a slight yellow tinge, like old black and
white photographs, but does reduce the loss of colour definition in
converting from ham's 4096 colours, which means 48 different brightness
levels.
You can of course change the colours in the palette with any art package
or programming language that loads IFF 16/32 colour pictures.
Usage:
When you run the program, an AMOS file selector appears. Select the IFF
HAM picture you wish to convert, and it will be loaded. Press Quit, and
the program ends.
Once the file is loaded, you can scroll the picture if it is larger than
the screen size by moving the mouse pointer to the appropriate edge of
the screen. To begin colour conversion, press either the left mouse button
for conversion to 16 colours, or the right mouse button for conversion to
32 colours.
When the picture has been converted, you can scroll around the converted
image as before my moving the mouse pointer. You can also switch between
the converted image, and the original, by pressing the left mouse button.
To save the converted image, press the right mouse button, and enter a
filename to save the IFF 16/32 colour picture to. Once the file is saved,
the program will quit. To quit without saving, press the right mouse
button, then the quit button in the file selector.
NOTE: This program can be quit while not in a file selector by pressing
Ctrl-C.
Distribution:
Whatever. I doubt this will make humungus amounts of cash.
Send Bugs / Suggestions To:
- Your local elected government representative
- Your local non-elected government representative (For those
not in democracies)
- Oliver Stone. (If he thinks wild palms has a storly line, your
bug reports should make the basis for a mini series)
- Watchdog (Or any T.V. program in your country that exposes
breaches of consumer safetry standards)
- Me (ph@doc.ic.ac.uk)